//
//  imageViewCell.m
//  ZzzzyManProject
//
//  Created by mac on 16/2/25.
//  Copyright © 2016年 ZzzzyMan@. All rights reserved.
//

#import "imageViewCell.h"
#import <UIImageView+WebCache.h>

@interface imageViewCell()

@property (strong, nonatomic) IBOutlet UIImageView *image;

@property (strong, nonatomic) IBOutlet UILabel *label;


@end

@implementation imageViewCell

- (instancetype)init {
    return  [super init];
}

- (void)setModel:(ImageModel *)model{
    _model = model;
    
    NSURL * imageUrl = [NSURL URLWithString:model.imageName];
    [self.image sd_setImageWithURL:imageUrl placeholderImage:[UIImage imageNamed:@"PlaceHolderImage"] options: SDWebImageContinueInBackground];
    self.label.text = model.title;
    self.label.enabled = true;
}

@end
